import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块

const getShops = {
  getProductCateTreeList(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/lists_tree`,
      qs.stringify(params)
    );
  },
  addProductCat(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/saveadd`,
      qs.stringify(params)
    );
  },
  delProductCat(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/del`,
      qs.stringify(params)
    );
  },
  updateProductCat(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/saveedit`,
      qs.stringify(params)
    );
  },
  findProduct(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/edit`,
      qs.stringify(params)
    );
  },
  sortProductCat(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/menu_sort`,
      qs.stringify(params)
    );
  },
  sorttb(params) {
    return axios.post(
      `${base.bd}/admin/tb_cate/sort_by_number`,
      qs.stringify(params)
    );
  },
  sortInputCat(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/sort_by_number`,
      qs.stringify(params)
    );
  }, //sku
  getSkuListTree(params) {
    return axios.post(`${base.bd}/admin/sku/lists_tree`, qs.stringify(params));
  },
  getProListTree(params) {
    return axios.post(
      `${base.bd}/admin/sku/lists_tree_pro`,
      qs.stringify(params)
    );
  },
  addSku(params) {
    return axios.post(`${base.bd}/admin/sku/saveadd`, qs.stringify(params));
  },
  delSku(params) {
    return axios.post(`${base.bd}/admin/sku/del`, qs.stringify(params));
  },
  updateSku(params) {
    return axios.post(`${base.bd}/admin/sku/saveedit`, qs.stringify(params));
  },
  findSku(params) {
    return axios.post(`${base.bd}/admin/sku/edit`, qs.stringify(params));
  },
  sortSku(params) {
    return axios.post(`${base.bd}/admin/sku/menu_sort`, qs.stringify(params));
  },
  sortInputSku(params) {
    return axios.post(
      `${base.bd}/admin/sku/sort_by_number`,
      qs.stringify(params)
    );
  },
  addShopsItem(params) {
    return axios.post(`${base.bd}/admin/product/saveadd`, qs.stringify(params));
  },
  getShopsList(params) {
    return axios.post(`${base.bd}/admin/product/lists`, qs.stringify(params));
  },
  deleteShopItem(params) {
    return axios.post(`${base.bd}/admin/product/del`, qs.stringify(params));
  },
  selectShopsItem(params) {
    return axios.post(`${base.bd}/admin/product/edit`, qs.stringify(params));
  },
  updataShopsItem(params) {
    return axios.post(
      `${base.bd}/admin/product/saveedit`,
      qs.stringify(params)
    );
  },
  delImg(params) {
    return axios.post(`${base.bd}/admin/image/del`, qs.stringify(params));
  },

  getReviewList(params) {
    return axios.post(
      `${base.bd}/admin/product_review/lists`,
      qs.stringify(params)
    );
  },
  reviewDel(params) {
    return axios.post(
      `${base.bd}/admin/product_review/del`,
      qs.stringify(params)
    );
  },
  reviewEdit(params) {
    return axios.post(
      `${base.bd}/admin/product_review/edit`,
      qs.stringify(params)
    );
  },
  updateReviewPic(params) {
    return axios.post(
      `${base.bd}/admin/product_review/up_review_pic`,
      qs.stringify(params)
    );
  },
  findReviewPic(params) {
    return axios.post(
      `${base.bd}/admin/product_review/find_review_pic`,
      qs.stringify(params)
    );
  },
  delReviewPic(params) {
    return axios.post(
      `${base.bd}/admin/product_review/del_review_pic`,
      qs.stringify(params)
    );
  },

  reviewSaveAdd(params) {
    return axios.post(
      `${base.bd}/admin/product_review/addsave`,
      qs.stringify(params)
    );
  },
  reviewSaveEdit(params) {
    return axios.post(
      `${base.bd}/admin/product_review/editsave`,
      qs.stringify(params)
    );
  },
  deleteShopItemsAll(params) {
    return axios.post(`${base.bd}/admin/product/del_all`, qs.stringify(params));
  },
  updateAll(params) {
    return axios.post(
      `${base.bd}/admin/product/show_change`,
      qs.stringify(params)
    );
  },
  updateCheck(params) {
    return axios.post(
      `${base.bd}/admin/product/check_change`,
      qs.stringify(params)
    );
  },
  coprPouduct(params) {
    return axios.post(
      `${base.bd}/admin/product/copy_product`,
      qs.stringify(params)
    );
  },
  isTop(params) {
    return axios.post(
      `${base.bd}/admin/product/top_product`,
      qs.stringify(params)
    );
  },
  setVideo(params) {
    return axios.post(
      `${base.bd}/admin/product/video_product`,
      qs.stringify(params)
    );
  },
  getTbCoupon(params) {
    //获取淘宝优惠卷
    return axios.post(`${base.bd}/admin/tb_goods/lists`, qs.stringify(params));
  },
  delTbCoupon(params) {
    //淘宝商品删除
    return axios.post(`${base.bd}/admin/tb_goods/del`, qs.stringify(params));
  },
  get_tb_cate(params) {
    //获取选品库类别列表
    return axios.post(`${base.bd}/admin/tb_cate/lists`, qs.stringify(params));
  },

  renew_xpk_cate(params) {
    //更新类别 选品库类别
    return axios.post(
      `${base.bd}/admin/tb_cate/renew_xpk_cate`,
      qs.stringify(params)
    );
  },
  renew_hjqd(params) {
    //同步 好券清单
    return axios.post(
      `${base.bd}/admin/tb_goods/renew_hjqd`,
      qs.stringify(params)
    );
  },
  renew_xpk(params) {
    //同步 选品库商品
    return axios.post(
      `${base.bd}/admin/tb_goods/renew_xpk`,
      qs.stringify(params)
    );
  },
  del_fid(params) {
    //清空分类商品
    return axios.post(
      `${base.bd}/admin/tb_goods/del_by_fid`,
      qs.stringify(params)
    );
  },
  del_sort(params) {
    //删除选品库分类
    return axios.post(`${base.bd}/admin/tb_cate/del`, qs.stringify(params));
  },
  collect(params) {
    //采集
    return axios.post(`${base.bd}/admin/product/tb_web`, qs.stringify(params));
  },
  sortProduct(params) {
    return axios.post(
      `${base.bd}/admin/product/sort_by_number`,
      qs.stringify(params)
    );
  },
  get_activitylist(params) {
    //获取商品活动场景
    return axios.post(
      `${base.bd}/admin/activity/product_type`,
      qs.stringify(params)
    );
  },

  add_limittime(params) {
    //添加抢购时区
    return axios.post(
      `${base.bd}/admin/rob_time/saveadd`,
      qs.stringify(params)
    );
  },
  get_limittime(params) {
    //得到抢购时区
    return axios.post(
      `${base.bd}/admin/rob_time/lists_all`,
      qs.stringify(params)
    );
  },
  del_limittime(params) {
    //删除抢购时区
    return axios.post(`${base.bd}/admin/rob_time/del`, qs.stringify(params));
  },
  add_event(params) {
    //添加复制活动商品
    return axios.post(`${base.bd}/admin/activity/index`, qs.stringify(params));
  },
  edit_limitshop(params) {
    //编辑限时抢购
    return axios.post(
      `${base.bd}/admin/activity/edit_limited_time`,
      qs.stringify(params)
    );
  },
  edit_integralshop(params) {
    //编辑积分兑换
    return axios.post(
      `${base.bd}/admin/activity/edit_redeem`,
      qs.stringify(params)
    );
  },
  editGroup(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_group`,
      qs.stringify(params)
    );
  },
  get_orderoption(params) {
    //获取订单分类
    return axios.post(
      `${base.bd}/admin/order/order_type`,
      qs.stringify(params)
    );
  },
  get_cardlist(params) {
    //获取卡密列表
    return axios.post(`${base.bd}/admin/card/lists`, qs.stringify(params));
  },
  del_cardlist(params) {
    //删除卡密列表
    return axios.post(`${base.bd}/admin/card/del_all`, qs.stringify(params));
  },
  //导入卡密表
  card_import_sheet(params) {
    return axios.post(
      `${base.bd}/admin/card/excel_get_sheet`,
      qs.stringify(params)
    );
  },
  card_import_sheet_two(params) {
    return axios.post(
      `${base.bd}/admin/card/excel_row_one`,
      qs.stringify(params)
    );
  },
  card_import_sheet_three(params) {
    return axios.post(`${base.bd}/admin/card/show_title`, qs.stringify(params));
  },
  card_import_sheet_four(params) {
    return axios.post(`${base.bd}/admin/card/excel_in`, qs.stringify(params));
  },
  //后台课程列表
  get_courselist(params) {
    return axios.post(`${base.bd}/admin/lesson/lists`, qs.stringify(params));
  },
  add_courselist(params) {
    return axios.post(`${base.bd}/admin/lesson/saveadd`, qs.stringify(params));
  },
  del_courselist(params) {
    return axios.post(`${base.bd}/admin/lesson/del`, qs.stringify(params));
  },
  edit_courselist(params) {
    return axios.post(`${base.bd}/admin/lesson/saveedit`, qs.stringify(params));
  },
  //课程分类列表
  get_catelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_cate/lists`,
      qs.stringify(params)
    );
  },
  add_catelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_cate/saveadd`,
      qs.stringify(params)
    );
  },
  del_catelist(params) {
    return axios.post(`${base.bd}/admin/lesson_cate/del`, qs.stringify(params));
  },
  edit_catelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_cate/saveedit`,
      qs.stringify(params)
    );
  },
  //课程集列表
  get_stagelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_stage/lists`,
      qs.stringify(params)
    );
  },
  add_stagelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_stage/saveadd`,
      qs.stringify(params)
    );
  },
  del_stagelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_stage/del`,
      qs.stringify(params)
    );
  },
  edit_stagelist(params) {
    return axios.post(
      `${base.bd}/admin/lesson_stage/saveedit`,
      qs.stringify(params)
    );
  },
  get_selcate(params) {
    return axios.post(
      `${base.bd}/admin/lesson_cate/lists_all`,
      qs.stringify(params)
    );
  },
  get_onecourse(params) {
    return axios.post(
      `${base.bd}admin/lesson/lesson_one`,
      qs.stringify(params)
    );
  },
  get_lists_son(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/lists_son`,
      qs.stringify(params)
    );
  },
  confirm_pay(params) {
    return axios.post(`${base.bd}/admin/order/pay`, qs.stringify(params));
  },
  edit_cut(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_bargain`,
      qs.stringify(params)
    );
  },
  edit_presale(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_appointment`,
      qs.stringify(params)
    );
  },
  edit_cate_show(params) {
    //更改分类显示隐藏
    return axios.post(
      `${base.bd}/admin/product_cate/show_cate`,
      qs.stringify(params)
    );
  },
  edit_home_cate(params) {
    //更改分类显示隐藏
    return axios.post(
      `${base.bd}/admin/product_cate/home_cate`,
      qs.stringify(params)
    );
  },
  export_order_goods(params) {
    //导出发货单
    return axios.post(
      `${base.bd}/admin/export_order/order_goods`,
      qs.stringify(params)
    );
  },

  get_excel_order_options(params) {
    return axios.post(
      `${base.bd}/admin/export_order/show_title`,
      qs.stringify(params)
    );
  },
  import_excel_order(params) {
    return axios.post(
      `${base.bd}/admin/export_order/excel_in`,
      qs.stringify(params)
    );
  },
  get_catetree_all(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/lists_tree_all`,
      qs.stringify(params)
    );
  },
  edit_write(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_write`,
      qs.stringify(params)
    );
  },
  delSupplierProduct(params) {
    return axios.post(
      `${base.bd}/admin/page/del_product`,
      qs.stringify(params)
    );
  },
  get_cate_slide(params) {
    //分类幻灯片后台列表
    return axios.post(
      `${base.bd}/admin/product_cate_slide/lists`,
      qs.stringify(params)
    );
  },
  add_cate_slide(params) {
    //添加分类幻灯片后台列表
    return axios.post(
      `${base.bd}/admin/product_cate_slide/saveadd`,
      qs.stringify(params)
    );
  },
  edit_cate_slide(params) {
    //保存修改  分类幻灯片后台列表
    return axios.post(
      `${base.bd}/admin/product_cate_slide/saveedit`,
      qs.stringify(params)
    );
  },
  del_cate_slide(params) {
    //删除分类幻灯片后台列表
    return axios.post(
      `${base.bd}/admin/product_cate_slide/del`,
      qs.stringify(params)
    );
  },
  getQualityList(params) {
    //品控
    return axios.post(
      `${base.bd}/admin/quality_user/lists`,
      qs.stringify(params)
    );
  },
  addQuality(params) {
    //品控
    return axios.post(
      `${base.bd}/admin/quality_user/saveadd`,
      qs.stringify(params)
    );
  },
  editQuality(params) {
    //品控
    return axios.post(
      `${base.bd}/admin/quality_user/saveedit`,
      qs.stringify(params)
    );
  },
  delQuality(params) {
    //品控
    return axios.post(
      `${base.bd}/admin/quality_user/del`,
      qs.stringify(params)
    );
  },
  getQualityDetails(params) {
    //品控 详情
    return axios.post(
      `${base.bd}/admin/quality_product/edit`,
      qs.stringify(params)
    );
  },
  addQualityDetails(params) {
    //品控 详情
    return axios.post(
      `${base.bd}/admin/quality_product/saveadd`,
      qs.stringify(params)
    );
  },
  editQualityDetails(params) {
    //品控 详情
    return axios.post(
      `${base.bd}/admin/quality_product/saveedit`,
      qs.stringify(params)
    );
  },
  clearPraductCateShop(params) {
    return axios.post(
      `${base.bd}/admin/product/empty_cate_product`,
      qs.stringify(params)
    );
  },
  editCateOne(params) {
    return axios.post(
      `${base.bd}/admin/product_cate/saveedit`,
      qs.stringify(params)
    );
  },
  get_mail(params) {
    return axios.post(`${base.bd}/admin/order/mail`, qs.stringify(params));
  },
  closeEvent(params) {
    return axios.post(
      `${base.bd}/admin/activity/del_activity`,
      qs.stringify(params)
    );
  },
  ddk_search_list(params) {
    return axios.post(
      `${base.bd}/admin/ddk_goods/search_list`,
      qs.stringify(params)
    );
  },
  ddk_goods_list(params) {
    return axios.post(`${base.bd}/admin/ddk_goods/lists`, qs.stringify(params));
  },
  ddk_add_goods(params) {
    return axios.post(
      `${base.bd}/admin/ddk_goods/add_goods`,
      qs.stringify(params)
    );
  },
  ddk_goods_del(params) {
    return axios.post(`${base.bd}/admin/ddk_goods/del`, qs.stringify(params));
  },
  ddk_promote_lists(params) {
    return axios.post(
      `${base.bd}/admin/ddk_promote/lists`,
      qs.stringify(params)
    );
  },
  ddk_promote_saveadd(params) {
    return axios.post(
      `${base.bd}/admin/ddk_promote/saveadd`,
      qs.stringify(params)
    );
  },
  ddk_promote_saveedit(params) {
    return axios.post(
      `${base.bd}/admin/ddk_promote/saveedit`,
      qs.stringify(params)
    );
  },
  ddk_promote_update_lists(params) {
    return axios.post(
      `${base.bd}/admin/ddk_promote/update_lists`,
      qs.stringify(params)
    );
  },
  ddk_promote_defaults(params) {
    return axios.post(
      `${base.bd}/admin/ddk_promote/defaults`,
      qs.stringify(params)
    );
  },
  ddk_promote_lists_all(params) {
    return axios.post(
      `${base.bd}/admin/ddk_promote/lists_all`,
      qs.stringify(params)
    );
  },
  tb_cate_savepiclink(params) {
    return axios.post(
      `${base.bd}/admin/tb_cate/savepiclink`,
      qs.stringify(params)
    );
  },
  printer_saveadd(params) {
    return axios.post(`${base.bd}/admin/printer/saveadd`, qs.stringify(params));
  },
  printer_lists_all(params) {
    return axios.post(
      `${base.bd}/admin/printer/lists_all`,
      qs.stringify(params)
    );
  },
  printer_del(params) {
    return axios.post(`${base.bd}/admin/printer/del`, qs.stringify(params));
  },
  printer_ticket(params) {
    return axios.post(
      `${base.bd}/admin/printer/print_ticket`,
      qs.stringify(params)
    );
  },
  get_courselistall(params) {
    return axios.post(
      `${base.bd}/admin/lesson/lists_all`,
      qs.stringify(params)
    );
  },

  //会员费管理
  get_upgrade_data(params) {
    return axios.post(
      `${base.bd}/admin/vip_system/lists`,
      qs.stringify(params)
    );
  },
  add_upgrade_data(params) {
    return axios.post(
      `${base.bd}/admin/vip_system/saveadd`,
      qs.stringify(params)
    );
  },
  edit_upgrade_data(params) {
    return axios.post(
      `${base.bd}/admin/vip_system/saveedit`,
      qs.stringify(params)
    );
  },
  del_upgrade_data(params) {
    return axios.post(`${base.bd}/admin/vip_system/del`, qs.stringify(params));
  },
  getCardList(params) {
    return axios.post(`${base.bd}/admin/cart/lists`, qs.stringify(params));
  },
  delCard(params) {
    return axios.post(`${base.bd}/admin/cart/del`, qs.stringify(params));
  },

  getAuctionOrder(params) {
    return axios.post(`${base.bd}/admin/auction/lists`, qs.stringify(params));
  },
  edit_eventauction(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_auction`,
      qs.stringify(params)
    );
  },
  set_order_modify_price(params) {
    return axios.post(
      `${base.bd}/admin/order/modify_price`,
      qs.stringify(params)
    );
  },

  get_groupbuyshop(params) {
    return axios.post(
      `${base.bd}/admin/group_buy/lists_product`,
      qs.stringify(params)
    );
  },

  get_pro_sheet(params) {
    return axios.post(
      `${base.bd}/admin/pro_excel/excel_get_sheet`,
      qs.stringify(params)
    );
  },
  relation_pro_sheet(params) {
    return axios.post(
      `${base.bd}/admin/pro_excel/excel_row_one`,
      qs.stringify(params)
    );
  },
  import_pro_sheet(params) {
    return axios.post(
      `${base.bd}/admin/pro_excel/excel_in`,
      qs.stringify(params)
    );
  },
  edit_platoon(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_platoon`,
      qs.stringify(params)
    );
  },
  //积分分类
  integral_cate_lists(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/lists`,
      qs.stringify(params)
    );
  },
  integral_cate_saveadd(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/saveadd`,
      qs.stringify(params)
    );
  },
  integral_cate_saveedit(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/saveedit`,
      qs.stringify(params)
    );
  },
  integral_cate_del(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/del`,
      qs.stringify(params)
    );
  },
  integral_cate_sort(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/sort`,
      qs.stringify(params)
    );
  },
  integral_cate_show(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/show`,
      qs.stringify(params)
    );
  },
  integral_cate_lists_all(params) {
    return axios.post(
      `${base.bd}/admin/integral_cate/lists_all`,
      qs.stringify(params)
    );
  },
  //编辑零元购活动产品
  edit_zero(params) {
    return axios.post(
      `${base.bd}/admin/activity/edit_zero`,
      qs.stringify(params)
    );
  },
  
  //礼品卡
  getGiftCard(params) {
    return axios.post(`${base.bd}/admin/recharge_card/lists`, qs.stringify(params));
  },
  //添加礼品卡
  addGiftCard(params) {
    return axios.post(`${base.bd}/admin/recharge_card/saveadd`, qs.stringify(params));
  },
  //修改礼品卡
  editGiftCard(params) {
    return axios.post(`${base.bd}/admin/recharge_card/saveedit`, qs.stringify(params));
  },
  //根据id获取礼品卡信息
  getGiftCardById(params) {
    return axios.post(`${base.bd}/admin/recharge_card/edit`, qs.stringify(params));
  },
  //删除礼品卡
  delGiftCard(params) {
    return axios.post(`${base.bd}/admin/recharge_card/del`, qs.stringify(params));
  },
  export_product_show_title(params) {
    return axios.post(
      `${base.bd}/admin/export_product/show_title`,
      qs.stringify(params)
    );
  },
  export_product_row_one(params) {
    return axios.post(
      `${base.bd}/admin/export_product/excel_row_one`,
      qs.stringify(params)
    );
  },
  export_product_get_sheet(params) {
    return axios.post(
      `${base.bd}/admin/export_product/excel_get_sheet`,
      qs.stringify(params)
    );
  },
  product_saveedit_cate(params) {
    return axios.post(
      `${base.bd}/admin/product/saveedit_cate`,
      qs.stringify(params)
    );
  },
  order_batch_prints(params) {
    return axios.post(
      `${base.bd}/admin/order/batch_prints`,
      qs.stringify(params)
    );
  },
  product_change_price(params) {
    return axios.post(
      `${base.bd}/admin/product/change_price`,
      qs.stringify(params)
    );
  },
  product_stock_batch_save(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/batch_save`,
      qs.stringify(params)
    );
  },
  product_stock_lists(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/lists`,
      qs.stringify(params)
    );
  },
  product_stock_query_stock(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/query_stock`,
      qs.stringify(params)
    );
  },
  getExtractListAll(params) {
    return axios.post(`${base.bd}/admin/extract/lists_all`, qs.stringify(params));
  },
  product_stock_allocation(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/allocation`,
      qs.stringify(params)
    );
  },
  product_stock_refund(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/refund`,
      qs.stringify(params)
    );
  },
  product_stock_findhid(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/findhid`,
      qs.stringify(params)
    );
  },
  product_stock_findpid(params) {
    return axios.post(
      `${base.bd}/admin/product_stock/findpid`,
      qs.stringify(params)
    );
  },
};
export default getShops;
